package com.learning.controller;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by hanchuanxing on 2018/10/27.
 */
@Component
//将所有app前缀的属性自动对应到属性
@ConfigurationProperties(prefix = "app")
public class AppConfig {
    private String name;
    private String version;
    private String desc;

    public String getName() {
        return name;
    }

    public String getVersion() {
        return version;
    }

    public String getDesc() {
        return desc;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
